// 组

import request from '@/utils/request'

// 新增组
export function addGroup(data) {
  return request({
    url: '/group/addGroup',
    method: 'post',
    data
  },'json')
}

// 更新组
export function updateGroup(data) {
  return request({
    url: '/group/updateGroup',
    method: 'post',
    data
  },'json')
}

// 查询组详情
export function getGroupDetail(data) {
  return request({
    url: '/group/groupDetail',
    method: 'post',
    data
  })
}

// 查询组列表
export function getGroupList(data) {
  return request({
    url: '/group/groupList',
    method: 'post',
    data
  })
}

// 删除组
export function deleteGroup(data) {
  return request({
    url: '/group/deleteGroup',
    method: 'post',
    data
  })
}




// 通过部门id查询组
export function getGroupByDeptID(data) {
  return request({
    url: '/group/getGroupByDeptId',
    method: 'post',
    data
  })
}

// 产品名称下拉框
export function getProductName(data) {
  return request({
    url: '/group/prodList',
    method: 'post',
    data
  })
}